package com.example.waterme.di

import com.example.waterme.data.WaterRepository
import com.example.waterme.data.WorkerWaterRepository
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
abstract class WaterModule {
    @Singleton
    @Binds
    abstract fun bindsWaterRepository(
        waterRepository: WorkerWaterRepository
    ): WaterRepository
}
